package com.dp.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dp.order.dao.OrderMapper;
import com.dp.order.dto.OutOrder;
import com.dp.order.entity.Order;
import com.dp.order.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author linzizun
 * @version 1.0
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    @Override
    public List<OutOrder> getOutOrder(String color) {
        return this.baseMapper.getOutOrder(color);
    }

    @Override
    public List<OutOrder> getOrderByAccount(String color, String account) {
        return this.baseMapper.getOrderByAccount(color, account);
    }

}
